#include <stdio.h>
#include <string.h>
void file_cpy(const char *dest,const char *src){
    FILE *fp_dest=fopen(dest,"w+");
    FILE *fp_src=fopen(src,"r");
    char ch=0;
    for (int i = 0; EOF!=(ch=fgetc(fp_src)); i++)
    {
        fputc(ch,fp_dest);
    }
    fclose(fp_dest);
    fclose(fp_src);
}
int main(int argc, char const *argv[])
{
    if (3==argc)
    {   
        printf("%s  %s\n",argv[1],argv[2]);
        file_cpy(argv[1],argv[2]);
    }
    else
    { printf("请按照格式运行程序%s",argv[0]);}
    
    return 0;
}
